﻿Public Class UserPrivilegesBUS
    Private userprivilegedao As New UserPrivilegesDAO()

    Public Function UserPrivileges_Select(ByVal UserAccountID As Integer) As DataSet
        Return userprivilegedao.UserPrivileges_Select(UserAccountID)
    End Function

    Public Function UserPrivileges_Insert(ByVal UserAccountID As Integer, _
                                          ByVal PrivilegeID As Integer, _
                                          ByVal NoneFlag As Boolean, _
                                          ByVal ReadOnlyFlag As Boolean, _
                                          ByVal FullFlag As Boolean, _
                                          ByVal ModifiedOn As Date, _
                                          ByVal ModifiedBy As String, _
                                          ByVal CreatedOn As Date, _
                                          ByVal CreatedBy As String) As Boolean
        Return userprivilegedao.UserPrivileges_Insert(UserAccountID, PrivilegeID, NoneFlag, ReadOnlyFlag, FullFlag, ModifiedOn, ModifiedBy, CreatedOn, CreatedBy)
    End Function

    Public Function UserPrivileges_Update(ByVal UserAccountID As Integer, _
                                          ByVal PrivilegeID As Integer, _
                                          ByVal NoneFlag As Boolean, _
                                          ByVal ReadOnlyFlag As Boolean, _
                                          ByVal FullFlag As Boolean, _
                                          ByVal ModifiedOn As Date, _
                                          ByVal ModifiedBy As String, _
                                          ByVal CreatedOn As Date, _
                                          ByVal CreatedBy As String, _
                                          ByVal LastAccessTime As Date) As Boolean
        Return userprivilegedao.UserPrivileges_Update(UserAccountID, PrivilegeID, NoneFlag, ReadOnlyFlag, FullFlag, ModifiedOn, ModifiedBy, CreatedOn, CreatedBy, LastAccessTime)
    End Function

    Public Function Privileges_Lookup() As DataSet
        Return userprivilegedao.Privileges_Lookup()
    End Function
End Class
